package com.excel.easyExcel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.excel.easyExcel.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Xinjie
 * @date 2023/4/25 11:48
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select `name`,goods_number,to_city,`timestamp` from goods where `timestamp` between #{sd} and #{ed};")
    List<Goods> getAllByTimestamp(@Param("sd") Long sd, @Param("ed") Long ed);
}
